﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
using Utility;
using Data;

namespace Website.Student
{
    public partial class Show_Major : System.Web.UI.UserControl
    {
        Tbl_MajorBUS majorBus = new Tbl_MajorBUS();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                loadData();
            }
        }

        private void loadData()
        {
            GridView1.DataSource = majorBus.getListMajor();
            GridView1.DataBind();
        }

    }
}